//
//  GYMineShopAddressEditViewModel.h
//  GYDemo
//
//  Created by mac on 2018/6/20.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "GCBaseViewModel.h"
#import "GYMineShopAddressViewModel.h"
#import "GCBaseEditUpdateModel.h"
#import "GCBaseEditCellViewModel.h"

///提交新求购model
@interface GYMineShopAddressUpdateModel : GCBaseEditUpdateModel
///必填
@property (nonatomic,strong) NSString *province;
@property (nonatomic,strong) NSString *city;
@property (nonatomic,strong) NSString *area;
@property (nonatomic,strong) NSString *addr;
@property (nonatomic,strong) NSString *postalcode;
@property (nonatomic,strong) NSString *name;
@property (nonatomic,strong) NSString *mobile;
@property (nonatomic,strong) NSString *defaultflag;
@end

///地址详细
@interface GYMineShopAddressDetailModel : NSObject
@property (nonatomic, assign) NSInteger id;
@property (nonatomic,strong) NSString *province;
@property (nonatomic,strong) NSString *provincename;
@property (nonatomic,strong) NSString *city;
@property (nonatomic,strong) NSString *cityname;
@property (nonatomic,strong) NSString *area;
@property (nonatomic,strong) NSString *areaname;
@property (nonatomic,strong) NSString *addr;
@property (nonatomic,strong) NSString *postalcode;
@property (nonatomic,strong) NSString *name;
@property (nonatomic,strong) NSString *mobile;
@property (nonatomic,strong) NSString *defaultflag;
@property (nonatomic,assign) NSInteger userid;
@property (nonatomic,assign) NSInteger createtime;
@property (nonatomic,strong) NSString *status;
@end

@interface GYMineShopAddressEditViewModel : GCBaseViewModel
@property (nonatomic,strong) GYMineShopAddressUpdateModel *updateModel;
@property (nonatomic,strong) GYMineShopAddressViewModel *listViewModel;
@property (nonatomic,strong) GYMineShopAddressModel *currentModel;
@property (nonatomic,strong) GYMineShopAddressDetailModel *detailModel;
@property (nonatomic,strong) NSIndexPath *indexPath;
@property (nonatomic,strong) NSMutableArray *items;
@property (nonatomic,strong) NSMutableArray *cellActions;
@property (nonatomic,strong) NSString *updateSign;
-(void)requestData;
-(void)requestSave;
///设为默认地址
-(void)requestSetDefault;
@end
